package xyz.eden.boot.uc.infrastructure.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

import javax.annotation.Resource;

/**
 * SystemConfig
 *
 * @author gavin
 * @version 1.0
 * @descriptor
 * @date 2023/7/30 14:43
 */
@Slf4j
@Configuration
public class ApplicationConfig {

    @Value(value = "${spring.application.name}")
    private String appName;

    @Value(value = "${server.port}")
    private Integer port;

    public Integer getPort() {
        return port;
    }

    public String getAppName() {
        return appName;
    }
}
